/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "订单主表",TableName = "order_master")]
    public partial class order_master:BaseEntity
    {
        /// <summary>
       ///订单ID
       /// </summary>
       [Key]
       [Display(Name ="订单ID")]
       [Column(TypeName="bigint")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public long order_id { get; set; }

       /// <summary>
       ///订单编号 yyyymmddnnnnnnnn
       /// </summary>
       [Display(Name ="订单编号 yyyymmddnnnnnnnn")]
       [Column(TypeName="bigint")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public long order_sn { get; set; }

       /// <summary>
       ///下单人ID
       /// </summary>
       [Display(Name ="下单人ID")]
       [Column(TypeName="bigint")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public long customer_id { get; set; }

       /// <summary>
       ///收货人姓名
       /// </summary>
       [Display(Name ="收货人姓名")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string shipping_user { get; set; }

       /// <summary>
       ///省
       /// </summary>
       [Display(Name ="省")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string province { get; set; }

       /// <summary>
       ///市
       /// </summary>
       [Display(Name ="市")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string city { get; set; }

       /// <summary>
       ///区
       /// </summary>
       [Display(Name ="区")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string district { get; set; }

       /// <summary>
       ///地址
       /// </summary>
       [Display(Name ="地址")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string address { get; set; }

       /// <summary>
       ///支付方式：1现金，2余额，3网银，4支付宝，5微信
       /// </summary>
       [Display(Name ="支付方式：1现金，2余额，3网银，4支付宝，5微信")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int payment_method { get; set; }

       /// <summary>
       ///订单金额
       /// </summary>
       [Display(Name ="订单金额")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? order_money { get; set; }

       /// <summary>
       ///支付金额
       /// </summary>
       [Display(Name ="支付金额")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? payment_money { get; set; }

       /// <summary>
       ///下单时间
       /// </summary>
       [Display(Name ="下单时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? create_time { get; set; }

       /// <summary>
       ///发货时间
       /// </summary>
       [Display(Name ="发货时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? shipping_time { get; set; }

       /// <summary>
       ///支付时间
       /// </summary>
       [Display(Name ="支付时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? pay_time { get; set; }

       /// <summary>
       ///收货时间
       /// </summary>
       [Display(Name ="收货时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? receive_time { get; set; }

       /// <summary>
       ///订单状态：0->待付款；1->待发货；2->已发货；3->已完成；4->已关闭；5->无效订单
       /// </summary>
       [Display(Name ="订单状态：0->待付款；1->待发货；2->已发货；3->已完成；4->已关闭；5->无效订单")]
       [Column(TypeName="sbyte")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public sbyte order_status { get; set; }

       /// <summary>
       ///修改时间
       /// </summary>
       [Display(Name ="修改时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? modified_time { get; set; }

       /// <summary>
       ///订单来源：0->小程序
       /// </summary>
       [Display(Name ="订单来源：0->小程序")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int source_type { get; set; }

       /// <summary>
       ///租车地点
       /// </summary>
       [Display(Name ="租车地点")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string car_rental_addr { get; set; }

       /// <summary>
       ///还车地点
       /// </summary>
       [Display(Name ="还车地点")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string car_return_addr { get; set; }

       /// <summary>
       ///租车人数
       /// </summary>
       [Display(Name ="租车人数")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int car_renters_number{ get;set;}

       /// <summary>
       ///订单类型1租车；2购买新车；3购买二手车
       /// </summary>
       [Display(Name ="订单类型1租车；2购买新车；3购买二手车")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int order_type { get; set; }

       /// <summary>
       ///支付订单号
       /// </summary>
       [Display(Name ="支付订单号")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string ordernumber { get; set; }

       /// <summary>
       ///购买数量
       /// </summary>
       [Display(Name ="购买数量")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? product_cnt { get; set; }

       /// <summary>
       ///超时时间
       /// </summary>
       [Display(Name ="超时时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? overtime { get; set; }

       
    }
}